package jiekou3;

/**
 * 士兵类
 */
public class Soldier extends Role implements Defend,SelfIntroduce{
    public Soldier() {
    }

    public Soldier(String name, int level) {
        super(name, level);
    }

    @Override
    public void defend() {
        System.out.println(getName() + "使用了防御技能防御普通攻击");
    }

    @Override
    public void selfIntroduce() {
        System.out.println("我是士兵");
    }
}
